﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RPGXEngine.Scripting.SystemFunctions
{
    public static class SystemFunction_SizeInBytes
    {
        public static IVariableType Method(ScriptManager sm, FunctionScope scope, List<IVariableType> data)
        {
            if (data == null || data.Count == 0)
                return sm.Zero;

            IVariableType s = VariableTypeFactory.Create(DataType.Var, String.Empty, data[0].SizeInBytes);
            return s;
        }
    }
}
